<!--
 $ @Author: liujiajun 45444154+wo1261931780@users.noreply.github.com
 $ @Date: 2022-06-05 15:28:59
 $ @LastEditors: liujiajun 45444154+wo1261931780@users.noreply.github.com
 $ @LastEditTime: 2022-06-05 15:29:05
 $ @FilePath: \st-html.github.io\src\aaa005\a026.html
 $ @Description: 1111
 $ @
 $ @Copyright (c) 2022 by liujiajun 45444154+wo1261931780@users.noreply.github.com, All Rights Reserved.
 -->
<!DOCTYPE html>
<html lang = "en">

<head>
	<meta charset = "UTF-8">
	<meta content = "IE=edge"
		  http-equiv = "X-UA-Compatible">
	<meta content = "width=device-width, initial-scale=1.0"
		  name = "viewport">
	<title>Document</title>
</head>

<body>
<div>我是单选框</div>
性别：
<input name = "demo1"
	   type = "radio"
>男
<!-- name实际上就是给不同的radio进行分组 -->
<!-- 分组以后，相同name的radio之间，只能单选 -->
<input name = "demo1"
	   type = "radio"
>女
<input checked
	   name = "demo1"

	   type = "radio">加上checked属性，实现默认选中
<hr>
我是多选框：
<input name = "demo2"
	   type = "checkbox"
>属性1
<input name = "demo2"
	   type = "checkbox"
>属性2
<input name = "demo2"
	   type = "checkbox"
>属性3
<input name = "demo2"
	   type = "checkbox"
>属性4


</body>

</html>
